package 一维数组;

public class Demo5 {
    public static void main(String[] args) {
        int[] arr={3,4,5,6,7,8,9};
        System.out.println("数组的长度为:"+arr.length);
        for (int num:arr){
            System.out.print(num+" ");
        }
    }
}
